import { SetMetadata } from '@nestjs/common';

export const RequireLoginKey = 'require-login';
export const RequireLogin = () => SetMetadata(RequireLoginKey, true);

export const PermissionKey = 'permission';
export const Permission = (...permissions: string[]) =>
  SetMetadata(PermissionKey, permissions);
